package top.melody.ecommerce.platform.api.domain.account;

import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import top.melody.ecommerce.common.util.reflect.ReflectUtil;

import java.util.Date;



public class AccountAddress implements Serializable {

    /* 自增 */
    private Integer addressId;
    /* 账号ID，关联ACCOUNT表主键 */
    private Integer accountId;
    /*收货人姓名*/
    private String contactName;
    /*收货人手机号*/
    private String contactMobile;
    /* 省(直辖市)ID，关联SYS_REGIONS表主键 */
    private Integer provinceId;
    /* 市(区)ID,关联SYS_REGIONS主键 */
    private Integer cityId;
    /* 区(县)ID，关联SYS_REGIONS表主键 */
    private Integer countyId;
    /* 详细地址 */
    private String addressDetail;
    /* 默认地址：Y;不是默认地址：N */
    private String defaultFlag;
    /* 有效：VALID;无效:INVALID */
    private String validStatus;
    /* 已删除：Y;未删除：N */
    private String removeStatus;
    /* 创建时间 */
    private Date createDate;
    /* 最近更新时间 */
    private Date updateDate;

    public AccountAddress() {

    }

    public AccountAddress(Integer addressId, Integer accountId, String contactName, String contactMobile, Integer provinceId, Integer cityId, Integer countyId, String addressDetail, String defaultFlag, String validStatus, String removeStatus, Date createDate, Date updateDate) {
        this.addressId = addressId;
        this.accountId = accountId;
        this.contactName = contactName;
        this.contactMobile = contactMobile;
        this.provinceId = provinceId;
        this.cityId = cityId;
        this.countyId = countyId;
        this.addressDetail = addressDetail;
        this.defaultFlag = defaultFlag;
        this.validStatus = validStatus;
        this.removeStatus = removeStatus;
        this.createDate = createDate;
        this.updateDate = updateDate;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactMobile() {
        return contactMobile;
    }

    public void setContactMobile(String contactMobile) {
        this.contactMobile = contactMobile;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getCountyId() {
        return countyId;
    }

    public void setCountyId(Integer countyId) {
        this.countyId = countyId;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getDefaultFlag() {
        return defaultFlag;
    }

    public void setDefaultFlag(String defaultFlag) {
        this.defaultFlag = defaultFlag;
    }

    public String getValidStatus() {
        return validStatus;
    }

    public void setValidStatus(String validStatus) {
        this.validStatus = validStatus;
    }

    public String getRemoveStatus() {
        return removeStatus;
    }

    public void setRemoveStatus(String removeStatus) {
        this.removeStatus = removeStatus;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public String toString() {
        return ReflectUtil.fieldsToString(this);
    }
}
